Ext.define('PJ.view.registrationmanagement.SignUpWindow', {
    extend: 'AM.default.DefaultWindowForm',
    requires: ['PJ.view.registrationmanagement.ChooseUserTree',
               'PJ.view.registrationmanagement.ChooseUserList'//人员列表
               ],
    
    modal: true,// 开启不允许点击其他组件
    frame: true,
    notEdit: true,
    isSame: false,
    isEdit: null,

    initComponent: function(){
    	var me = this;
    	me.items= [{
    		xtype: "container",
    		layout: 'column',
            defaults: {
            	labelAlign: 'right',
            	labelWidth: 65,
            	readOnly: true,
            	padding: '0 0 5 0',
            	columnWidth: .5
            },
    		items: [{
    			xtype: 'textfield',
    			fieldLabel: '班级名称',
    			name: 'className',
            	fieldCls: 'noBorder',
            	columnWidth: 1
    		}, {
    			xtype: 'textfield',
    			fieldLabel: '举办时间',
            	fieldCls: 'noBorder',
    			name: 'learnTime'
    		}, {
                xtype: 'fieldset',
            	columnWidth: 1,
                height: 530,
    			padding: '0 0 10 0',
                items: [{
            		xtype: "container",
            		layout: 'column',
            		items: [{
            			title: '组织机构树',
            			xtype: 'rtmChooseUserTree',
                        height: 418,
                    	columnWidth: .19,
                    	classId:me.classId,
            	        collapsible: true
            		},{
            			title: '人员列表',
            			xtype: 'wccChooseUserList',
                        height: 418,
                    	columnWidth: .81,
            			classId:me.classId,
            			openState:me.openState,
            			publishState:me.publishState
            		}]
                }]
    		}, {
    			xtype: 'hidden',
    			name: 'classId',
    			value: me.trainingGradeId
    		}]
    	}];
        me.buttons = [{
            text: '关闭',
            scope: this,
            handler: this.close
        }];
        me.callParent(arguments);
    },
    listeners: {
    	close: function(){
    		this.grid.store.load();
    	}
    }
});
